package com.shadow.mall.customer.remote;

import com.shadow.mall.common.core.JsonResult;
import com.shadow.mall.customer.domain.request.CustomerReceiveAfterSaleRequest;
import com.shadow.mall.customer.domain.request.CustomerReviewReturnGoodsRequest;
import com.shadow.mall.customer.exception.CustomerBizException;
import com.shadow.mall.order.api.AfterSaleApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 订单售后远程接口
 *
 *
 * @version 1.0
 */
@Component
@FeignClient("shadow-mall-order")
public interface AfterSaleService {


    /**
     * 接收客服的审核结果
     */
    @PostMapping("/afterSale/receiveCustomerAuditResult")
    public JsonResult<Boolean> receiveCustomerAuditResult(CustomerReviewReturnGoodsRequest customerReviewReturnGoodsRequest);

    /**
     * 客服系统查询售后支付单信息
     */
    @PostMapping("/afterSale/customerFindAfterSaleRefundInfo")
    public JsonResult<Long> customerFindAfterSaleRefundInfo(CustomerReceiveAfterSaleRequest customerReceiveAfterSaleRequest);
}
